@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  font-style: normal;
  background-image: url("../img/background--mob.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.success {
  background-image: url("../img/background_succ--mob.jpg");
  background-color: white;
  background-position-y: 30px;
}

.success .auth-button__ikon {
  display: none;
}

.error {
  background-image: url("../img/background_err--mob.jpg");
  background-size: 255px 296px;
  background-color: white;
  background-position-y: 30px;
  background-position-x: center;
  background-position-y: 130px;
}

.error .button__button--error {
  display: none;
}

.auth__wrapper {
  color: rgba(0, 0, 0, 0.8);
  margin-top: 454px;
  background-color: white;
  padding: 32px 24px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-radius: 24px 24px 0 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.auth__wrapper--success {
  top: -10vh;
}

.auth__ikon {
  position: absolute;
  width: 92px;
  height: 50px;
  left: 28px;
  top: 17px;
}

.auth__title {
  font-weight: 600;
  font-size: 28px;
  line-height: 31px;
  -webkit-font-feature-settings: 'liga' off;
          font-feature-settings: 'liga' off;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 12px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.auth__title--error {
  width: 250px;
}

.auth__info {
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 40px;
  width: 252px;
}

.auth-button__button {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
  width: 312px;
  height: 56px;
  border-radius: 8px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0 auto;
}

.bg-color {
    background: #FFDD2D;
}

.auth-button__button--success {
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 10px;
}

.auth-button__ikon {
  width: 37px;
  height: 20px;
  margin-top: -1px;
}

@media screen and (min-width: 481px) {
  body {
    background: #F6F7F8;
  }
  .success {
    background: #F6F7F8;
  }
  .error {
    background: #F6F7F8;
  }
  .auth__wrapper {
    height: 500px;
    width: 432px;
    margin: auto;
    top: calc(50% - 250px);
    left: calc(50% - 216px);
    background-color: white;
    color: rgba(0, 0, 0, 0.8);
    border-radius: 24px;
    padding: 11px 12px;
    background-image: url("../img/background.jpg");
    background-repeat: no-repeat;
    background-size: 430px 510px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 58px;
  }
  .auth__wrapper--success {
    background-image: url("../img/background_succ.jpg");
    background-color: white;
    background-size: 300px 200px;
    background-position-x: center;
    background-position-y: 40px;
  }
  .auth__wrapper--error {
    background-image: url("../img/background_err.jpg");
    background-color: white;
    background-size: 224px 260px;
    background-position-x: center;
    background-position-y: 50px;
  }
  .auth__wrapper div {
    background-color: white;
    width: 432px;
    height: 280px;
    border-radius: 24px;
    padding: 32px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    margin-top: 280px;
    margin-left: -12px;
  }
  .auth__wrapper--success div {
    margin-top: 225px;
  }
  .auth__ikon {
    width: 92px;
    height: 51px;
    left: 28px;
    top: 28px;
  }
  .auth__title {
    font-size: 24px;
    line-height: 28px;
    margin-top: 0;
    margin-bottom: 8px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }
  .auth__title--error {
    width: 360px;
    margin-top: 10px;
  }
  .auth__info {
    width: 336px;
    margin-bottom: 32px;
  }
  .auth-button__button {
    height: 56px;
    width: 255px;
    margin-bottom: 10px;
  }
}
